package com.carrent.demo.Mapper;


import com.carrent.demo.Domain.Users;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UsersMapper {


        List<Users> getPage(@Param("start")Integer start, @Param("pageSize")Integer pageSize, @Param("name")String name);

        Integer getCount(@Param("name")String name);

        Boolean deleteUser(@Param("id") String id);

        Boolean editUser(@Param("users") Users users);

        Boolean addUser(@Param("users") Users users);

        Users login(@Param("account") String account);

        String searchNameById(@Param("id") Integer id);


}
